<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchOption.ascx.vb"
    Inherits="WebForm_ManageMeeting_SearchOption" %>

<script runat="server">
    Protected Sub rbtlVersion1_DataBinding(ByVal sender As Object, ByVal e As System.EventArgs)
        TryCast(sender, ListControl).DataSource = MyObj.GetCodeMappingData("Product", "Version")
        TryCast(sender, ListControl).DataTextField = "Text"
        TryCast(sender, ListControl).DataValueField = "Value"
    End Sub
    
    Protected Sub ddlMPStatus_DataBinding(ByVal sender As Object, ByVal e As System.EventArgs)
        TryCast(sender, ListControl).DataSource = MyObj.GetCodeMappingData("Product", "MPStatus")
        TryCast(sender, ListControl).DataTextField = "Text"
        TryCast(sender, ListControl).DataValueField = "Value"
    End Sub
    
    Protected Sub ddlMPStatus_DataBound(ByVal sender As Object, ByVal e As System.EventArgs)     
        MyObj.SetMPStatus(Me.ddlMPStatus, Me.ViewPoint)
        TryCast(sender, ListControl).Items.Insert(0, MyObj.GetDDLSelectAllItem())
    End Sub
</script>

<div style="background-color: #170D0F" align="left">
    <asp:Panel ID="pnlPlus" runat="server">
        <table width="50px">
            <tr>
                <td align="left">
                    <asp:ImageButton ID="imgPlus" runat="server" SkinID="minus" />
                    <asp:LinkButton ID="lbtnViewContent" runat="server"></asp:LinkButton>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="pnlMinus" runat="server">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <fieldset id="pnlSelect" style="border-color: #4E333B" runat="server">
                    <legend class="white2">Select</legend>
                    <table>
                        <tr>
                            <td>
                                <fieldset id="plVersion" style="border-color: #4E333B" runat="server">
                                    <legend class="white2">
                                        <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:report, plVersion%>" />
                                    </legend>
                                    <ReportSearchOption:VersionControl ID="VersionControl1" runat="server" IsMeeting="true"
                                        ExcludeSpecialMonth="true" />
                                    <asp:Label ID="Label1" Font-Bold="true" runat="server" Text="<%$Resources:report,lblRange %>"></asp:Label>
                                    <asp:DropDownList ID="ddlDisplayYear" runat="server"></asp:DropDownList>
                                </fieldset>
                                <fieldset id="plData" style="border-color: #4E333B" runat="server">
                                    <legend style="color:Blue">
                                        <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:report, plData%>" />
                                    </legend>
                                    <ReportSearchOption:HierarchyControl ID="HierarchyControl1" runat="server" />
                                </fieldset>
                                <fieldset id="plType" style="border-color: #4E333B" runat="server">
                                    <legend class="white2">
                                        <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:report, plType%>" />
                                    </legend>
                                    <table align="left" width="100%" border="0" cellspacing="0">
                                        <tr>
                                            <td align="left">
                                                <asp:Label ID="lblVersion1" Visible="false" Font-Bold="true" runat="server" Text="<%$Resources:report,lblVersion1 %>"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:RadioButtonList ID="rbtlVersion1" Visible="false" RepeatLayout="Flow" RepeatColumns="1"
                                                    runat="server" OnDataBinding="rbtlVersion1_DataBinding">
                                                </asp:RadioButtonList>
                                            </td>
                                            <td align="left">
                                                <asp:Label ID="lblChannel" Font-Bold="true" runat="server" Text="<%$Resources:report,lblChannel %>"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlChannel" runat="server">
                                                </asp:DropDownList>
                                            </td>
                                            <td align="left">
                                                <asp:Label ID="lblMMPPstates" Font-Bold="true" runat="server" Text="<%$Resources:report,lblMMPPstates %>"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlMPStatus" OnDataBinding="ddlMPStatus_DataBinding" OnDataBound="ddlMPStatus_DataBound"
                                                    runat="server">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                    </table>
                                </fieldset>
                            </td>
                            <td valign="bottom">
                                <asp:Button ID="btnSubmit" UseSubmitBehavior="false" ValidationGroup="Submit" runat="server"
                                    meta:resourcekey="btnSubmit" />
                                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                                    ShowSummary="false" ValidationGroup="Submit" />
                                <asp:HiddenField ID="hf_ActualSecondValue" runat="server" />
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </ContentTemplate>
            <Triggers>
                <asp:PostBackTrigger ControlID="btnSubmit" />
            </Triggers>
        </asp:UpdatePanel>
    </asp:Panel>
</div>
<ajaxToolkit:CollapsiblePanelExtender ID="cpeDemo" SkinID="normal" runat="Server"
    TargetControlID="pnlMinus" ExpandControlID="pnlPlus" CollapseControlID="pnlPlus"
    Collapsed="false" TextLabelID="lbtnViewContent" ImageControlID="imgPlus" ExpandedText="Hide"
    CollapsedText="Show">
</ajaxToolkit:CollapsiblePanelExtender>
